package com.juzi.jingtai;

public class ArrayDemo1 {
    public static void main(String[] args) {
        //目标：使用静态初始化的方式定义数组
        //数据类型[] 数组名称 = new 数据类型[] {元素1、元素2……}
//        double [] scores = new double[]{99.5,88.0,75.5};
        //简化格式如下：
        double [] scores = {99.5,88.0,75.5};

//        int[] ages = new int[]{12 , 24, 36};
        int[] ages = {12 , 24, 36};

//        String[] names = new String[]{"张三","李四","王五"};
        String[] names = {"张三","李四","王五"};

        System.out.println(names);
    }
}
